package cn.denvie.xfxblog;

import java.util.Random;

public class ClassAgentTest {

    public static void main(String[] args) throws Exception {
        System.out.println("========== ClassAgentTest main() ==========");
        ClassAgentTest agent = new ClassAgentTest();
        for (int i = 0; i < 10; i++) {
            agent.testAgent();
        }
        System.out.println("========== ClassAgentTest main() end. ==========");
    }

    public void testAgent() throws InterruptedException {
        Thread.sleep(new Random().nextInt(1000));
        throw new RuntimeException("测试异常");
    }

}
